package com.zzl.finance.order.dto;

import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author sunpp
 * @date 2021-11-26 19:40:12
 */
@Data
@ApidocModel
public class OrderAddDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotEmpty(message = "凭证编号 不能为空")
    @ApidocModelProperty(description = "凭证编号")
    private String ticketNo;

    @NotNull(message = "融资本金 不能为空")
    @ApidocModelProperty(description = "融资成本/ 融资本金")
    private Double sellAmount;

    @NotNull(message = "服务费用 不能为空")
    @ApidocModelProperty(description = "服务费用")
    private Double serviceChage;

    @NotNull(message = "利息费用 不能为空")
    @ApidocModelProperty(description = "利息费用")
    private Double estimatedFinancingInterest;

    @NotNull(message = "金融机构id 不能为空")
    @ApidocModelProperty(description = "金融机构id")
    private Integer instinctyId;


    @NotEmpty(message = "金融机构id 不能为空")
    @ApidocModelProperty(description = "金融名称")
    private String instinctyName;


    @NotEmpty(message = "融资信息json 不能为空")
    @ApidocModelProperty(description = "融资信息json")
    private String financeInfo;

    @NotNull(message = "融资企业id 不能为空")
    @ApidocModelProperty(description = "融资企业id")
    private Integer financeEnterpriseId;

    @NotEmpty(message = "融资企业名称 不能为空")
    @ApidocModelProperty(description = "融资企业名称")
    private String financeEnterpriseName;

}
